<extend name="Public:base" />
<block name="content">
	<form id="validation-form" method="post">
    <style type="text/css">
        li{
            list-style: none;;
        }
		table{
			text-align: center;
		}
		.mytableer tbody > tr > td{
			border: none;
		}
    </style>
</form>
<div class="table-responsive">
	<table class="table table-striped table-bordered table-hover"  id="mytable">
		<thead>
			<tr>
				<th align="center">银行卡号</th>
				<th align="center">开卡银行</th>
			</tr>
		</thead>
		<tbody>
				<volist name="user" id="vo" key="k">
				<tr>
					<td align="left" >{$vo.bank_num}</td>
					<td align="left">{$vo.bank_name}</td>
					</tr>
				</volist>
				<tr>
					<td colspan="20" class="page">{$page}</td>
				</tr>
		</tbody>
	</table>
</div>
</block>
<block name="javascript">
<script>
$(function() {

	$("#search").click(function () {
		var url = $(this).attr('url');
		var query = $('.search-form').find('input,select').serialize();
		query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
		query = query.replace(/^&/g, '');
		if (url.indexOf('?') > 0) {
			url += '&' + query;
		} else {
			url += '?' + query;
		}
		window.location.href = url;
	});

});
function detail($id_num){
	$.ajax({
		url:"{:U('Master/bankDetail')}",
		type:"post",
		data:{num:$id_num},
		success:function(data){
			if(data=='1'){
				$.jbox.tip("正在修改数据...", 'loading');
				// 模拟2秒后完成操作
				window.setTimeout(function () { $.jbox.tip('修改成功！', 'success');location.reload()}, 1000);
			}else{
				$.jbox.info("修改失败!",'提示');
			}
		}
	});
}
</script>
</block>